import i18n from '@src/locales';
import FormSubSparePartSetting from './FormSubSparePartSetting.vue';
import FormSubSparePartView from './FormSubSparePartView.vue';
import FormSubSparePartPreview from './FormSubSparePartPreview.vue';
import FormSparePartBuild from './FormSparePartBuild.vue';
import FormSubSparePart from './FormSubSparePart.vue';

let FormCustomerSparePartField = {
  formType: 'subSparePart',
  name: i18n.t('common.form.type.subSparePart'),
  isSystem: 0,
  forceDelete: true,
  isSystemControl: true,
  previewIcon: 'icon-beijian1',
  subFormFieldList: [],
  isSubForm: true,
  component: {
    setting: FormSubSparePartSetting,
    preview: FormSubSparePartPreview,
    view: FormSubSparePartView,
    build: FormSparePartBuild,
    extend: {}
  }
};

const FormSubSparepart = {
  formType: 'relateSparePart',
  name: i18n.t('common.form.type.relateSparePart'),
  component: {
    build: FormSubSparePart
  }
}
export default [FormCustomerSparePartField, FormSubSparepart];
